package com.neko.seed.api.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author Holly Liu
 * 通用的是否选择：0：否，1：是"
 */

public enum YesOrNo {
    NO_TYPE(0, "否"),
    YES_TYPE(1, "是");
    @EnumValue
    private Integer type;
    private String value;

    YesOrNo(Integer type, String value) {
        this.type = type;
        this.value = value;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
